<?php
	require('includes/config.inc.php');	
		
	$sprache = $_GET['lang'];
	
	if (isset($_GET['lang'])) {
		require('lang/'.$sprache.'.php');
	} else {
		require('lang/de.php');
	}
	$smarty->assign("lang",$lang);

	$do = $_GET['do'].".tpl";
	

	
if (file_exists($_GET['do'].".php")) {

	switch ($_GET['do']) 
		{
		    case "":
				$smarty->assign("do","start.tpl");
				$smarty->assign('title', "Start");
				require('start.php');
				break;
				
			case "start":
				$smarty->assign("do","start.tpl");
				$smarty->assign('title', "Start");
				require('start.php');
				break;	

			case "user":
				$smarty->assign("do","user.tpl");
				$smarty->assign('title', "User");
				require('user.php');
				break;	
				
			case "groups":
				$smarty->assign("do","groups.tpl");
				$smarty->assign('title', "Groups");
				require('groups.php');
				break;		

			case "permissions_nodes":
				$smarty->assign("do","permissions_nodes.tpl");
				$smarty->assign('title', "Permissions Nodes");
				require('permissions_nodes.php');
				break;						
		}
} else {
	$smarty->assign("do","start.tpl");
	$smarty->assign('title', "Start");
	require('start.php');
}


?>